package com.xuxueli.applyModules.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class TestCommontData implements Serializable {

    private Long id;
    private String name;
    private BigDecimal amount = BigDecimal.ZERO;
    private Boolean isExist;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    @JSONField(format = "yyyy-MM-dd")
    private Date timeNow;
    private LocalDateTime localDateTime;
    private String gNo;

    public String getgNo() {
        return gNo;
    }

    public void setgNo(String gNo) {
        this.gNo = gNo;
    }
}
